import http from '@/utils/http'
// 删除文件
export const deleteFile = (params) => {
  const url = '/home-page/knowledge_base/deleteFile'
  return http.post(url, params)
}

// 下载文件
export const downLoadFile = (params) => {
  const url = '/home-page/knowledge_base/downLoadFile'
  return http.post(url, params)
}

// 获取知识库列表
export const selectFilePageList = (params) => {
  const url = '/home-page/knowledge_base/selectFilePageList'
  return http.post(url, params)
}

// 文件上传
export const uploadFile = (params) => {
  const url = '/home-page/knowledge_base/uploadFile'
  return http.post(url, params)
}
